package javango.contrib.admin;

import java.io.Serializable;

import javango.db.QuerySet;

@Deprecated
public interface ModelManager<T> {
		
	// TODO Should this have save, create, delete functions that abstract the underlying dao?
	
	T get(Serializable pk) throws Exception;
	Object getPk(T bean) throws Exception;
	QuerySet<T> filter() throws Exception;

	boolean canView() throws Exception;
	boolean canCreate() throws Exception;
	boolean canUpdate(T bean) throws Exception;
	boolean canDelete(T bean) throws Exception;
	
}
